<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			*{
				margin: 0;
				padding: 0;
			}
			#d1{
				border: 5px groove red;
				column-count: 3;
				width: 200px;
				/* margin: 0 auto; */
			}
			
			#d1 div{
				height: 100px;
				width: 100px;
				border: 2px solid green;
				box-sizing: border-box;
				text-align: center;
				line-height: 100px;
				font-size: 30px;
				margin: 0 auto;
			}
			#d1 div:nth-child(2n){
				border: 3px dotted gold;
				background-color: blueviolet;
			}
		</style>
	</head>
	<body>
		<div id="d1">
			<div>1</div>
			<div>2</div>
			<div>3</div>
			<div>4</div>
			<div>5</div>
			<div>6</div>
			<div>7</div>
			<div>8</div>
			<div>9</div>
		</div>
	</body>
</html>
